<template>
	<!-- 

   -->
	<div>
		<router-link to="/one" tag="button">One</router-link>
    <router-link to="/two" tag="button">Two</router-link>
		<transition name="laoli">
      <router-view></router-view>
    </transition>
	</div>
</template>

<script>
export default {
	name: "App",
	data() {
		return {
			isShow: true,
		};
	},
};
</script>

<style scoped>
.box {
  width: 200px;
  height: 200px;
  background: pink;
}

.laoli-enter,
.laoli-leave-to {
  opacity: 0;
}

.laoli-enter-active {
  transition: all 2s linear;
}
.laoli-leave-active {
  transition: all 2s linear;
  position: absolute;
}
</style>
